<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //复杂数据类型传地址
        let DadProto = {
            name:"张三",
            age:20
        }

        let SonProto = DadProto
        SonProto.name = "李四"
        console.log(SonProto)
        console.log(DadProto)

        //简单数据类型：传值
        let a = 10
        let b = a
        b=20
        console.log(a)
    </script>
</body>
</html>